import {defineStore} from "pinia";
import {ref} from "vue";
export const useUserStore=defineStore('userId',()=>{
        const userId=ref('')

        function setUserId(newUserId){
            userId.value=newUserId
        }
        function removeUserId(){
            userId.value=''
        }
        return{
            userId,setUserId,removeUserId
        }
    },
    {
        persist:true
    }
);